<extend name="Base/common"/>
<block name="style">
<link href="__CSS__/stylesheet.css" rel="stylesheet">
<link href="__CSS__/business.css" rel="stylesheet">
</block>
<block name="header">
<header>
	<include file="User/header" />
</header>
</block>

<block name="body">
<div class="container main">
	<div class="user-main">
		<div class="col-xs-3">
			<include file="Business/left_menu" />
		</div>
		<div class="col-xs-9">
			<h5>物流信息填写</h5>
			<div class="content">
			<input type="hidden" value={$info.order_id} name="orderid" />
				<p><label>聚真宝保真鉴定服务费：</label><em class="yen">￥</em><em class="price">{$info.identify_price}</em></p>
				<p><label>聚真宝指定收货地址：</label>{$info.address_full}<span class="real-name"> {$info.consignee}</span>
				<span class="mobile">{$info.mobile}</span></p>
				<p><label>订单号：</label>{$info.order_no}</p>
				<form action="__SELF__" class="form-horizontal form-shipping" enctype="multipart/form-data" autocomplete="off">
				<div class="form-group">
						<label class="label-control">物流公司：</label>
						<div class="input-control">
							<select name="shipping_code" class="form-control">
								<volist name="shiping" id="vo">
	     						<option value="{$vo.code}" >{$vo.title}</option>
	     					</volist>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="label-control">物流单号：</label>
						<div class="input-control">
							<input type="text" name=code value="" class="form-control" value="">
						</div>
					</div>
					<div class="form-group">
						<label class="label-control">上传凭证：</label>						
						<div class="input-control relative">
							<input type="hidden" name="cover_id" value="" />
							<div class="authimg"><img src="__IMG__/pzb/img1.gif" /></div>
							<a class="upload-btn" id="authimg">+</a>
						</div>						
					</div>
					<div class="form-group">
						<div class="button-control">
							<input type="hidden" name="orderid" value="{$info.id}" />
							<a href="javascript:;" class="btn ajax-post" target-form="form-horizontal">发货</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
</block>

<block name="script">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>					
<script type="text/javascript">
var rootpath="__ROOT__";
//上传图片
/* 初始化上传插件 */
$("#authimg").uploadify({
	  "auto"          : true,
	  "height"          : 100,
    "swf"             : "__STATIC__/uploadify/uploadify.swf",
    "fileObjName"     : "download",
    "buttonText"		: "修改头像",
    "uploader"        : "{:U('File/uploadPicture',array('session_id'=>session_id()))}",
    "width"           : 100,	      
    'removeTimeout'	  :0,
    'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
    "onUploadSuccess" : uploadPicture_panel,
    'onFallback' : function() {
        alert('未检测到兼容版本的Flash.');
    }
});	   
function uploadPicture_panel(file, data){
 	var data = $.parseJSON(data);
 	src = data.url || "__ROOT__" + data.path;
     if(data.status){
     	$("input[name='cover_id']").val(data.id);
     	src = data.url || '__ROOT__' + data.path
     	$(".authimg").find('img').attr('src',src);
     } else {
     	updateAlert(data.info);				        	
  }
}
highlight_leftnav("{:U('Business/orders')}");
highlight_subnav("{:U('Business/index')}");
</script>
</block>